<?php
/**
 * Created by PhpStorm.
 * User: langziqiang
 * Date: 2019-07-26
 * Time: 13:07
 */

namespace App\Http\Controllers;

use App\Logics\Common\Http;
use Elasticsearch\ClientBuilder;

class TestController extends Controller{


    /**
     * 上海社保验证码
     * @author langziqiang
     */
    public function ShSocialYzm(){
        Http::curl_get('https://guanli.mayihr.com/Public/login/', 'shanghai.txt',    'shanghai.txt');

        $userName = '15256948064';
        $passWord = 'mayihr12345';

        $res = Http::curl_post('https://guanli.mayihr.com/public/afs',['username'=>$userName,'password'=>$passWord],'shanghai.txt');

        $res = json_decode();
    }
}